﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 外出申请单
    /// 版 本：V2.6.200612
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2018-07-16
    /// </summary>
    [Table("WFORM_OUTGOINGAPPLY")]
    public class OutgoingApplyEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }
        /// <summary>
        /// 流程主键
        /// </summary>
        [Column("F_FLOWID")]
        public string FlowId { get; set; }
        /// <summary>
        /// 流程标题
        /// </summary>
        [Column("F_FLOWTITLE")]
        public string FlowTitle { get; set; }
        /// <summary>
        /// 紧急程度
        /// </summary>
        [Column("F_FLOWURGENT")]
        public int? FlowUrgent { get; set; }
        /// <summary>
        /// 流程单据
        /// </summary>
        [Column("F_BILLNO")]
        public string BillNo { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        [Column("F_APPLYUSER")]
        public string ApplyUser { get; set; }
        /// <summary>
        /// 所在部门
        /// </summary>
        [Column("F_DEPARTMENT")]
        public string Department { get; set; }
        /// <summary>
        /// 申请日期
        /// </summary>
        [Column("F_APPLYDATE")]
        public DateTime? ApplyDate { get; set; }
        /// <summary>
        /// 外出总计
        /// </summary>
        [Column("F_OUTGOINGTOTLE")]
        public string OutgoingTotle { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        [Column("F_STARTTIME")]
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [Column("F_ENDTIME")]
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 目的地
        /// </summary>
        [Column("F_DESTINATION")]
        public string Destination { get; set; }
        /// <summary>
        /// 相关附件
        /// </summary>
        [Column("F_FILEJSON")]
        public string FileJson { get; set; }
        /// <summary>
        /// 外出事由
        /// </summary>
        [Column("F_OUTGOINGCAUSE")]
        public string OutgoingCause { get; set; }
    }
}
